package com.codedef.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.codedef.entity.Classroom;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ClassroomMapper extends BaseMapper<Classroom> {

    @Select("SELECT abbreviation FROM classroom WHERE id = #{classroomId}")
    String selectAbbreviationById(@Param("classroomId") Integer classroomId);

}
